package ui;

import javax.swing.DefaultListModel;
import javax.swing.JList;

import model.Entry;

public class ItemList extends JList {

	private static final long serialVersionUID = 8788526505925741181L;
	
	private MainPanel panel;

	public ItemList(MainPanel panel, DefaultListModel dlm) {
		super(dlm);
		
		this.panel = panel;
	}

	public void showEntry(Entry e) {
		this.panel.showEntry(e);
	}
	
}
